//package com.yunhe.option.controller.base;
//
//import com.yunhe.option.domain.base.PriceRate;
//import com.yunhe.common.model.ResultObject;
//import com.yunhe.option.service.base.PriceRateService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Optional;
//
//@Api(value = "priceRate", description = "电价费率维护", tags = {"Base_PriceRate"})
//@RestController
//@RequestMapping("/priceRate")
//public class PriceRateController {
//    @Autowired
//    private PriceRateService priceRateService;
//
//    @ApiOperation("根据条件获得电价费率列表")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "seasonPriceId", value = "季节电价ID", dataType = "long", paramType = "query")
//    })
//    @RequestMapping(method = RequestMethod.GET)
//    public ResponseEntity<ResultObject> search(@RequestParam("seasonPriceId") Optional<Long> seasonPriceId) {
//        Iterable<PriceRate> results = priceRateService.search(seasonPriceId.orElse(null));
//        return new ResponseEntity<>(new ResultObject<>(results), HttpStatus.OK);
//    }
//}
